home *** CD-ROM | disk | FTP | other *** search
/ FishMarket 1.0 / FishMarket v1.0.iso / fishies / 501-525 / disk_516 / loom / docs / loomfile.doc < prev    next >
Text File  |  1992-05-06  |  1KB  |  52 lines

  1.     LOOM FILE FORMAT
  2.     
  3.     IFF '85
  4.     
  5.     FORM LOOM
  6.  
  7.     LMHD    LOOMheader CHUNK
  8.     long LMHDsize
  9.     :struct loomheader
  10.      ushort   lh_warps    \ #warps
  11.      ushort   lh_picks    \ #picks
  12.       ushort   lh_shedtype    \ 0=falling  255=rising
  13.      ushort   lh_woffset    \ # of leftmost visable warp
  14.      ushort   lh_poffset    \ # of topmost visable pick
  15.      ushort   lh_thecolor   \ current color
  16.      ushort   lh_sett       \ # pixels of sett
  17.      ushort   lh_warpsize    \ # pixels of warp
  18.      ushort   lh_picksize    \ # pixels of weft
  19.     ;struct
  20.  
  21.     WARP    warp CHUNK
  22.     long WARPchunksize
  23.     :struct warpchunk
  24.      #warps structs ColorPosition wp_slot    \ variable length
  25.     ;struct
  26.     
  27.     where ColorPosition is defined:
  28.     
  29.     :struct ColorPosition
  30.      long cp_color
  31.      long cp_position
  32.     ;struct
  33.     
  34.     WEFT    weft CHUNK
  35.         long WEFTchnksize
  36.     :struct weftchunk
  37.      #picks structs ColorPosition wf_slot    \ variable length
  38.     ;struct
  39.  
  40.     TIEU    tieupchunk
  41.     long TIEchunksize
  42.     :struct tiechunk
  43.     8 doubles TI_RowColumnMask
  44.     ;struct
  45.     
  46.     CMAP    colortable chunk
  47.     ILBM standard
  48.     
  49.     Any order is allowed for LMHD WARP WEFT TIEU CMAP chunks but
  50.     any LOOM file must contain all 5 chunks.
  51.  
  52.